package org.a022;
/**
 * ThreadLocal线程局部变量
 * 
 * @author 马士兵
 */
public class ThreadLocal1 {
	volatile static Persion p = new Persion();
	public static void main(String[] args) {
		new Thread(()->{
			System.out.println(p.name);
		}).start();
		new Thread(()->{
			p.name="lisi";
		}).start();
	}
}
class Persion{
	public String name = "zhangsan";
}